//
//  VideoIntegrateVC.m
//  SDKSample
//
//  Created by 小肥羊 on 15/6/5.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import "VideoIntegrateVC.h"

@interface VideoIntegrateVC ()

@end

@implementation VideoIntegrateVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.xfyVideoView = [[XFYVideoView alloc] initWithFrame:CGRectMake(10, 100, 300, 220) WithPlayUrl:@"http://media4.cnlive.com:8080/00/00/06/20/mp4/620.mp4" withImgUrl:@"http://g.hiphotos.baidu.com/image/pic/item/08f790529822720ed2c488ee79cb0a46f21fab98.jpg"];
    [self.view addSubview:self.xfyVideoView];
}

- (void)viewDidAppear:(BOOL)animated
{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)test1:(UIButton *)sender {
    self.xfyVideoView.playUrl = @"http://v.jxvdy.com/sendfile/w5bgP3A8JgiQQo5l0hvoNGE2H16WbN09X-ONHPq3P3C1BISgf7C-qVs6_c8oaw3zKScO78I--b0BGFBRxlpw13sf2e54QA";
    [self.xfyVideoView playVideo];
}

- (IBAction)test2:(UIButton *)sender {
    self.xfyVideoView.playUrl = @"rtsp://183.6.177.38:554/ip6p_new2.mp4";
}

- (IBAction)test3:(UIButton *)sender {
    
}

- (IBAction)test4:(UIButton *)sender {
    [self.xfyVideoView closePlay];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
